<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="service.serviceimpl.ServiceUserImpl" %>
<%@ page import="entity.Userinfo" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
    <style>
        .bh{
            color: red;
        }
    </style>
</head>
<body>

<table border="4">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>sex</th>
        <th>op</th>
    </tr>
    <c:forEach items="${pageinfo.getList()}" var="xjj">
        <tr>
            <td>${xjj.id}</td>
            <td>${xjj.name}</td>
            <td>${xjj.sex==1?"男":"女"}</td>
            <td>删除|修改</td>
        </tr>
    </c:forEach>
</table>
当前页/总页数:${pageinfo.getPageNum()}/${pageinfo.getPages()}
<%--<a href="${pageContext.request.contextPath}/ServletPage?currentPage=1">首页</a>--%>
<%--<a   <%=currentPage-1<1?"hidden":""%>    href="page163.jsp?currentPage=<%=currentPage-1%>">上一页</a>--%>
<%--<a <%=currentPage+1>pages?"hidden":""%> href="page163.jsp?currentPage=<%=currentPage+1%>">下一页</a>--%>
<%--<a href="page163.jsp?currentPage=<%=pages%>">尾页</a>--%>
</body>
</html>
